package se.webbzon.boltzmann.battle.strategy.playerstrategy;

import se.webbzon.boltzmann.battle.battleaction.BattleActionFactory;
import se.webbzon.boltzmann.player.PlayerCharacter;

public class PSCharacterIconPage extends PSIconPage {

	/*============================================================
	Constructors
	============================================================*/
	
	public PSCharacterIconPage( AbstractPSPage parent,
								PSIconPageLayout layout,
								PlayerCharacter character) {
		super(parent, layout);
		
		for (int i = 0; i < character.battleActionFactories(); i++) {
			BattleActionFactory factory = character.getBattleActionFactory(i);
			addIcon(new PSActionIconImpl(factory));
		}
	}
	
	/*============================================================
	Private Classes
	============================================================*/
	
	private static final class PSActionIconImpl extends AbstractPSActionIcon {

		/*============================================================
		Constructors
		============================================================*/
		
		public PSActionIconImpl(BattleActionFactory factory) {
			super(factory);
		}
		
		/*============================================================
		Public Methods
		============================================================*/
		
		@Override public boolean isAvailable() {
			return true;
		}

		@Override public String getUnavailableMessage() {
			return null;
		}

		@Override
		public String getDescription() {
			return "Test";
		}
		
	}

}
